 <html>
 
<head>
 
<title>Create New Person</title>
 
</head>
 
<body>
 
hello from save action :
 
<g:if test="${flash.content }">
 
	${flash.content }
 </g:if>
<g:else>
 
	${flash.error }
 </g:else>
 	<g:form name="createPersonForm" action="save">
 		<h2>New Person</h2>
 		<table border="1">
 			<tr>
 				<th>First Name</th>
 				<td><g:textField name="firstName" value="${person.firstName}" />
 				</td>
 			</tr>
 			<tr>
 				<th>Last Name</th>
 				<td><g:textField name="lastName" value="${person.lastName}" />
 				</td>
 			</tr>
 			<tr>
 				<th>Birth Date</th>
 				<td><g:datePicker name="birthDate" precision="day" value="${(person.birthDate)}"/></td>
 			</tr>
		</table>
 		<g:submitButton name="save" id="${params.id }" action="save" />
 	</g:form>
</body>
</html> 
